package com.room.mapper;

import com.room.pojo.Classes;
import com.room.pojo.College;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ClassesMapper {
    int deleteByPrimaryKey(String classId);

    int insert(Classes record);

    int insertSelective(Classes record);

    Classes selectByPrimaryKey(String classId);

    int updateByPrimaryKeySelective(Classes record);

    int updateByPrimaryKey(Classes record);

    //获得下班级列表的菜单的初始化数据
    List<Classes> getAllClasses();

    //展示数据
    List<Classes> getClassesByPage(Integer start, Integer size);

    //获取总数
    @Select("select count(*) from classes")
    long getTotal();

    //根据id删除学生
    int deleteClassesById(@Param("ids")String[] ids);


    String getMaxId();
}